import request from '@/utils/request'

// 查询用户参与约会(User_Attend_Activity)列表
export function listActivities(query) {
  return request({
    url: '/jwyz/activities/list',
    method: 'get',
    params: query
  })
}

// 查询用户参与约会(User_Attend_Activity)详细
export function getActivities(id) {
  return request({
    url: '/jwyz/activities/' + id,
    method: 'get'
  })
}

// 新增用户参与约会(User_Attend_Activity)
export function addActivities(data) {
  return request({
    url: '/jwyz/activities',
    method: 'post',
    data: data
  })
}

// 修改用户参与约会(User_Attend_Activity)
export function updateActivities(data) {
  return request({
    url: '/jwyz/activities',
    method: 'put',
    data: data
  })
}

// 删除用户参与约会(User_Attend_Activity)
export function delActivities(id) {
  return request({
    url: '/jwyz/activities/' + id,
    method: 'delete'
  })
}
